package com.jinxi.web.listener;

import com.jfinal.kit.PropKit;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class InitListener implements ServletContextListener {

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		PropKit.clear();
	}

	//启动时加载配置文件
	@Override
	public void contextInitialized(ServletContextEvent arg0) {
		PropKit.use("application.properties");
	}

}
